<!doctype html>    
<html lang="en">
<head>
<meta charset="UTF-8">
<title>User</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
	<h1 align="center">User</h1>
	<table>
		<tr>
			<td>Name: </td>
			<td><?=$user->user_lastname?>, <?=$user->user_firstname?> <?=$user->user_middlename?></td>
		</tr>
		<tr>
			<td>Gender: </td>
			<td><?=$user->user_gender?></td>
		</tr>
		<tr>
			<td>Email: </td>
			<td><?=$user->user_email?></td>
		</tr>
		<tr>
			<td>Cellphone: </td>
			<td><?=$user->user_cellphone?></td>
		</tr>
		<?php
			$pre_bday = $user->user_birthday;
			$bday = date("d/m/Y", strtotime($pre_bday));
		?>
		<tr>
			<td>Birthday: </td>
			<td><?=$bday?></td>
		</tr>
			<td>Address: </td>
			<td><?=$user->user_address?></td>
		</tr>
			<td>City: </td>
			<td><?=$user->user_city?></td>
		</tr>
			<td>Hometown: </td>
			<td><?=$user->user_hometown?></td>
		</tr>
			<td>Country: </td>
			<td><?=$user->user_country?></td>
		</tr>
		<form method='POST' action='<?=site_url() . '/users/insert_photo?&id=' . $user->user_id ?>' enctype='multipart/form-data'>
		<tr>		
			<td>Photo: </td>
			<td>
				<input type="hidden" name="MAX_FILE_SIZE" value="2000000">
				<input name="userfile" type="file" id="userfile">
			</td>
			<input type="hidden" name="user_id" value="<?=$_GET['id']?>" />
		</tr>
		<tr>
			<td></td>
			<td _align="center"><a class="btn btn-info" title="Edit" href="<? echo base_url() . 'index.php/users/update_user?&id=' . $user->user_id ?>"><i class="icon-edit icon-white"></i> Edit user</a></td>
		</tr>
			<td colspan='2' align='center'><input type='submit' value='Add'/></td>
		</form>
	</table>
</body>
</html>
